[%- BLOCK pluginLink;
	IF enabled && settings.length > 0 %]
		<a href="[% webroot %]settings/[% settings %]?player=[% playerURI %]&amp;playerid=[% playerURI %]">[% 'SETTINGS' | string; '</a>';
	END;
END;

IF NOT ajaxUpdate;
'<!-- Begin settingsheader.html -->';
FILTER null;

	pageHeaderScripts = BLOCK;
		pageHeaderScripts %]
		<script type="text/javascript" src="[% webroot %]html/prototype.js?r=[% revision %]" ></script>
		<script type="text/javascript" src="[% webroot %]html/scriptaculous/scriptaculous.js?load=effects,controls&amp;r=[% revision %]" ></script>
		<script type="text/javascript" src="[% webroot %]html/global.js?r=[% revision %]" ></script>
		<script type="text/javascript">
			[% PROCESS html/settings.js; %]
			new Event.observe(window, 'load', function(){ initSettingsForm(); });
		</script>
	[% END;

	pageHeaderInfo = BLOCK;
 		PROCESS setting_chooser.html setting_chooser_noHome = 1;
 	END;
 	
END;

IF playerid && needsClient; 
	pagetitle='PLAYER_SETTINGS' | string; 
ELSE;
	pagetitle = 'SERVER_SETTINGS' | string;
END;
pageicon = 'settings'; noSpacer = 1; PROCESS pageheader.html %]

<div id="statusarea" class="statusarea">
	[%- IF warning;
		warning;
	END -%]
</div>

<div id="settingsRegion">
[% END %]
<form name="settingsForm" id="settingsForm" method="post" action="[% webroot; path; IF playerid; '?playerid='; playerid | uri; END; %]">
<div id="innerSettingsBlock">
<div id="fileselectorautocomplete" class="fileselectorautocomplete" style="display:none"></div>
<div id="fileselectorindicator" class="fileselectorindicator" style="display:none"><img src="/html/images/wait.gif"></div>

	<input type=hidden value="0" name="useAJAX">
	<input type=hidden value="[% page %]" name="page">
	[% IF playerid && needsClient %]<input type=hidden value="[% playerid %]" name="playerid">[% END %]
	[% IF player %]<input type=hidden value="[% player %]" name="player">[% END %]

<table width = '100%' class = 'noborder listNoAlbum' cellspacing = "0" cellpadding = "0" border = "collapse">

<!-- End settingsheader.html -->
